//
//  ViewController.swift
//  SortProject
//
//  Created by ALH000355 on 2021/9/8.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        self.view.backgroundColor = .cyan
        
        let screenView = YXScreenView.init(frame: CGRect.init(x: 0, y: 0, width: SCREEN_WIDTH - 20, height: SCREENH_HEIGHT / 2))
        self.view.addSubview(screenView)
        
        let btn = UIButton(type: .custom)
        btn.frame = CGRect(x: 100, y: screenView.frame.size.height + 120, width: 100, height: 100)
        btn.backgroundColor = .yellow
        self.view .addSubview(btn)
        btn.addTarget(self, action: #selector(clickPushAction), for: .touchUpInside)
    }
    
    @objc func clickPushAction() {
        print("11111")
        let testVc = YHAddPartViewController.init()
        testVc.modalPresentationStyle = .fullScreen
        self.present(testVc, animated: true, completion: nil)
    }


}

